" Copyright (C) 
" 2010 - taco [tacoee@gmail.com]
" This program is free software; you can redistribute it and/or
" modify it under the terms of the GNU General Public License
" as published by the Free Software Foundation; either version 2
" of the License, or (at your option) any later version.
" 
" This program is distributed in the hope that it will be useful,
" but WITHOUT ANY WARRANTY; without even the implied warranty of
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
" GNU General Public License for more details.
" 
" You should have received a copy of the GNU General Public License
" along with this program; if not, write to the Free Software
" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
" 

syntax on 
set tabstop=4
set number
set nobackup
set noswapfile
set autoindent
set cindent
set shiftwidth=4
set smarttab
set helplang=cn
"set clipboard+=unnamed
set cindent shiftwidth=4
"Set backspace
set backspace=eol,start,indent

set mouse=a

"don't need to save midified file wihle jump to other file.
"keep all buffer in memory
set hidden
filetype indent on

"set for plugin --TlistToggle
nnoremap <silent> <F9> :TlistToggle <CR>

"set for plugin --simple_comment
"nnoremap <silent> <F11> :call Co(&ft) <CR>
"set for plugin vim-bash
nnoremap <silent> <C-W><F12> :ConqueTermSplit bash<CR>
nnoremap <silent> <F12> :shell<CR>


"When you press the Home key, the cursor will move to the first nonblank ch
"aracter on the line, or ,if already at that position, the cursor will move
"to the first character.
function! SmartHome()
	let s:col = col(".")
	normal! ^
	if s:col == col(".")
		normal ! 0
	endif
endfunction
nnoremap <silent> <Home> :call SmartHome() <CR>
inoremap <silent> <Home> <C-O>:call SmartHome() <CR>

"setting for DoxygenToolkit plugin
let g:DoxygenToolkit_authorName="taco [tacoee@gmail.com]"
"let g:DoxygenToolkit_licenseTag=
nnoremap <silent> <F3>c :Dox <CR>
nnoremap <silent> <F3>l :DoxLic <CR>
nnoremap <silent> <F3>a :DoxAuthor <CR>

"start a new line if larger than 80 characters.
"set textwidth=80 

"setting for cscope

"setting for spell
"setlocal spell spelllang=en_us

"setting for window
nnoremap + <C-w>+ <CR>
nnoremap _ <C-w>- <CR>
nnoremap > <C-w>> <CR>
nnoremap < <C-w>< <CR>


"set nowrapscan with search word
"set nowrapscan

"setting for make
nnoremap <F5> :make <CR>
nnoremap <F6> :make install <CR>

"set search hightlight
set hlsearch
 
"setting for taglist
let g:Tlist_Show_One_File = 1
